package com.xckj.teacher.ui.activity

import com.xckj.teacher.R
import com.xckj.teacher.databinding.ActivityCurrentPhoneBinding
import com.xckj.teacher.framework.BaseActivity
import com.xckj.teacher.presenter.MinePresenter
import com.xckj.teacher.util.get
import com.xckj.teacher.util.startActivity


class CurrentPhoneActivity : BaseActivity<ActivityCurrentPhoneBinding>() {

    private val presenter: MinePresenter by lazy { MinePresenter(this) }

    var phone = ""
    override fun setStatusBarColor(): Int {
        return R.color.white
    }

    inner class ProxyClick {

        fun back() {
            finish()
        }

        fun change() {
            startActivity<ChangePhoneActivity>()
        }


    }

    override fun loadLayout(): Int {
        return R.layout.activity_current_phone
    }

    override fun initData() {
        dataBinding.presenter = presenter
        dataBinding.click = ProxyClick()
        phone = intent.get<String>("phone").toString()
        dataBinding.tvPhone.text = "$phone"
    }

    override fun setListener() {

    }


    override fun isStatusBarDarkFont(): Boolean {
        return true
    }
}